﻿@model MvcFrameStruct.Areas.User.Models.User

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddUser</title>
    <link href="~/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
    <script src="~/My97DatePicker/calendar.js" type="text/javascript"></script>
    <script src="~/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    @*<style>
        input {
            height:25px;
            line-height:25px;        
        }

        .rediostyle input {
            height:20px;
            line-height:20px;
           width:30px;
        }
        .submitstyle {
            width:250px;
            height:30px;
            padding:4px;
        }
    </style>*@
    <script>
        function BackOpr()
        {
            location.href = "Index/Index";
        }
    </script>
</head>
<body>
    <div>
        @using (Html.BeginForm("AddUser","Index",FormMethod.Post))
        {
            <table class="table table-bordered">
                <tr>
                    <td class="text-right">
                        @Html.LabelFor(m => m.Name)：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.Name)
                        <span class="text-danger">@Html.ValidationMessageFor(m => m.Name)</span>
                    </td>
                </tr>
                <tr>
                    <td class="text-right">
                        @Html.LabelFor(m => m.BirthDate)：
                    </td>
                    <td>
                        @(new HtmlString(Html.CalendarFor(model => model.BirthDate, "yyyy-MM-dd")))
                        <span class="text-danger">@Html.ValidationMessageFor(m => m.BirthDate)</span>
                    </td>
                </tr>
                <tr>
                    <td class="text-right">
                        @Html.LabelFor(m => m.UserSex)：
                    </td>
                    <td class="rediostyle">
                        @Html.RadioButtonFor(m => m.UserSex, "true") 男
                        @Html.RadioButtonFor(m => m.UserSex, "false") 女
                        <span class="text-danger">@Html.ValidationMessageFor(m => m.UserSex)</span>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="text-center">
                        <input type="submit" value="提交" class="button_on"/>
                        &nbsp;
                        <input type="button" value="返回" class="button_on" onclick="BackOpr()" />
                    </td>
                </tr>
            </table>
        }
    </div>
</body>
</html>
